Optimal. Leaf size=122 \[ -\frac{a b^2 \log (a+b \sinh (c+d x))}{d \left (a^2+b^2\right )^2}-\frac{b \left (a^2-b^2\right ) \tan ^{-1}(\sinh (c+d x))}{2 d \left (a^2+b^2\right )^2}+\frac{a b^2 \log (\cosh (c+d x))}{d \left (a^2+b^2\right )^2}-\frac{\text{sech}^2(c+d x) (a-b \sinh (c+d x))}{2 d \left (a^2+b^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.199132, antiderivative size = 122, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 7, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.259, Rules used = {2837, 12, 823, 801, 635, 203, 260} \[ -\frac{a b^2 \log (a+b \sinh (c+d x))}{d \left (a^2+b^2\right )^2}-\frac{b \left (a^2-b^2\right ) \tan ^{-1}(\sinh (c+d x))}{2 d \left (a^2+b^2\right )^2}+\frac{a b^2 \log (\cosh (c+d x))}{d \left (a^2+b^2\right )^2}-\frac{\text{sech}^2(c+d x) (a-b \sinh (c+d x))}{2 d \left (a^2+b^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2837
Rule 12
Rule 823
Rule 801
Rule 635
Rule 203
Rule 260
Rubi steps
\begin{align*} \int \frac{\text{sech}^2(c+d x) \tanh (c+d x)}{a+b \sinh (c+d x)} \, dx &=\frac{b^3 \operatorname{Subst}\left (\int \frac{x}{b (a+x) \left (-b^2-x^2\right )^2} \, dx,x,b \sinh (c+d x)\right )}{d}\\ &=\frac{b^2 \operatorname{Subst}\left (\int \frac{x}{(a+x) \left (-b^2-x^2\right )^2} \, dx,x,b \sinh (c+d x)\right )}{d}\\ &=-\frac{\text{sech}^2(c+d x) (a-b \sinh (c+d x))}{2 \left (a^2+b^2\right ) d}+\frac{\operatorname{Subst}\left (\int \frac{a b^2-b^2 x}{(a+x) \left (-b^2-x^2\right )} \, dx,x,b \sinh (c+d x)\right )}{2 \left (a^2+b^2\right ) d}\\ &=-\frac{\text{sech}^2(c+d x) (a-b \sinh (c+d x))}{2 \left (a^2+b^2\right ) d}+\frac{\operatorname{Subst}\left (\int \left (-\frac{2 a b^2}{\left (a^2+b^2\right ) (a+x)}+\frac{b^2 \left (-a^2+b^2+2 a x\right )}{\left (a^2+b^2\right ) \left (b^2+x^2\right )}\right ) \, dx,x,b \sinh (c+d x)\right )}{2 \left (a^2+b^2\right ) d}\\ &=-\frac{a b^2 \log (a+b \sinh (c+d x))}{\left (a^2+b^2\right )^2 d}-\frac{\text{sech}^2(c+d x) (a-b \sinh (c+d x))}{2 \left (a^2+b^2\right ) d}+\frac{b^2 \operatorname{Subst}\left (\int \frac{-a^2+b^2+2 a x}{b^2+x^2} \, dx,x,b \sinh (c+d x)\right )}{2 \left (a^2+b^2\right )^2 d}\\ &=-\frac{a b^2 \log (a+b \sinh (c+d x))}{\left (a^2+b^2\right )^2 d}-\frac{\text{sech}^2(c+d x) (a-b \sinh (c+d x))}{2 \left (a^2+b^2\right ) d}+\frac{\left (a b^2\right ) \operatorname{Subst}\left (\int \frac{x}{b^2+x^2} \, dx,x,b \sinh (c+d x)\right )}{\left (a^2+b^2\right )^2 d}-\frac{\left (b^2 \left (a^2-b^2\right )\right ) \operatorname{Subst}\left (\int \frac{1}{b^2+x^2} \, dx,x,b \sinh (c+d x)\right )}{2 \left (a^2+b^2\right )^2 d}\\ &=-\frac{b \left (a^2-b^2\right ) \tan ^{-1}(\sinh (c+d x))}{2 \left (a^2+b^2\right )^2 d}+\frac{a b^2 \log (\cosh (c+d x))}{\left (a^2+b^2\right )^2 d}-\frac{a b^2 \log (a+b \sinh (c+d x))}{\left (a^2+b^2\right )^2 d}-\frac{\text{sech}^2(c+d x) (a-b \sinh (c+d x))}{2 \left (a^2+b^2\right ) d}\\ \end{align*}
Mathematica [A] time = 0.208201, size = 105, normalized size = 0.86 \[ \frac{-a \left (a^2+b^2\right ) \text{sech}^2(c+d x)+b \left (a^2+b^2\right ) \tanh (c+d x) \text{sech}(c+d x)+2 b \left (\left (b^2-a^2\right ) \tan ^{-1}\left (\tanh \left (\frac{1}{2} (c+d x)\right )\right )+a b (\log (\cosh (c+d x))-\log (a+b \sinh (c+d x)))\right )}{2 d \left (a^2+b^2\right )^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.003, size = 474, normalized size = 3.9 \begin{align*} -2\,{\frac{a{b}^{2}\ln \left ( \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}a-2\,\tanh \left ( 1/2\,dx+c/2 \right ) b-a \right ) }{d \left ( 2\,{a}^{4}+4\,{a}^{2}{b}^{2}+2\,{b}^{4} \right ) }}-{\frac{{a}^{2}b}{d \left ({a}^{4}+2\,{a}^{2}{b}^{2}+{b}^{4} \right ) } \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{3} \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}+1 \right ) ^{-2}}-{\frac{{b}^{3}}{d \left ({a}^{4}+2\,{a}^{2}{b}^{2}+{b}^{4} \right ) } \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{3} \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}+1 \right ) ^{-2}}+2\,{\frac{ \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}{a}^{3}}{d \left ({a}^{4}+2\,{a}^{2}{b}^{2}+{b}^{4} \right ) \left ( \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1 \right ) ^{2}}}+2\,{\frac{ \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}a{b}^{2}}{d \left ({a}^{4}+2\,{a}^{2}{b}^{2}+{b}^{4} \right ) \left ( \left ( \tanh \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1 \right ) ^{2}}}+{\frac{{a}^{2}b}{d \left ({a}^{4}+2\,{a}^{2}{b}^{2}+{b}^{4} \right ) }\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}+1 \right ) ^{-2}}+{\frac{{b}^{3}}{d \left ({a}^{4}+2\,{a}^{2}{b}^{2}+{b}^{4} \right ) }\tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}+1 \right ) ^{-2}}+{\frac{a{b}^{2}}{d \left ({a}^{4}+2\,{a}^{2}{b}^{2}+{b}^{4} \right ) }\ln \left ( \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}+1 \right ) }-{\frac{{a}^{2}b}{d \left ({a}^{4}+2\,{a}^{2}{b}^{2}+{b}^{4} \right ) }\arctan \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) }+{\frac{{b}^{3}}{d \left ({a}^{4}+2\,{a}^{2}{b}^{2}+{b}^{4} \right ) }\arctan \left ( \tanh \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.58781, size = 294, normalized size = 2.41 \begin{align*} -\frac{a b^{2} \log \left (-2 \, a e^{\left (-d x - c\right )} + b e^{\left (-2 \, d x - 2 \, c\right )} - b\right )}{{\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} d} + \frac{a b^{2} \log \left (e^{\left (-2 \, d x - 2 \, c\right )} + 1\right )}{{\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} d} + \frac{{\left (a^{2} b - b^{3}\right )} \arctan \left (e^{\left (-d x - c\right )}\right )}{{\left (a^{4} + 2 \, a^{2} b^{2} + b^{4}\right )} d} + \frac{b e^{\left (-d x - c\right )} - 2 \, a e^{\left (-2 \, d x - 2 \, c\right )} - b e^{\left (-3 \, d x - 3 \, c\right )}}{{\left (a^{2} + b^{2} + 2 \,{\left (a^{2} + b^{2}\right )} e^{\left (-2 \, d x - 2 \, c\right )} +{\left (a^{2} + b^{2}\right )} e^{\left (-4 \, d x - 4 \, c\right )}\right )} d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.46903, size = 2240, normalized size = 18.36 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tanh{\left (c + d x \right )} \operatorname{sech}^{2}{\left (c + d x \right )}}{a + b \sinh{\left (c + d x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.35872, size = 304, normalized size = 2.49 \begin{align*} \frac{\frac{a b^{2} \log \left (e^{\left (2 \, d x + 2 \, c\right )} + 1\right )}{a^{4} + 2 \, a^{2} b^{2} + b^{4}} - \frac{a b^{2} \log \left ({\left | -b e^{\left (2 \, d x + 2 \, c\right )} - 2 \, a e^{\left (d x + c\right )} + b \right |}\right )}{a^{4} + 2 \, a^{2} b^{2} + b^{4}} - \frac{{\left (a^{2} b e^{c} - b^{3} e^{c}\right )} \arctan \left (e^{\left (d x + c\right )}\right ) e^{\left (-c\right )}}{a^{4} + 2 \, a^{2} b^{2} + b^{4}} + \frac{{\left (a^{2} b e^{\left (3 \, c\right )} + b^{3} e^{\left (3 \, c\right )}\right )} e^{\left (3 \, d x\right )} - 2 \,{\left (a^{3} e^{\left (2 \, c\right )} + a b^{2} e^{\left (2 \, c\right )}\right )} e^{\left (2 \, d x\right )} -{\left (a^{2} b e^{c} + b^{3} e^{c}\right )} e^{\left (d x\right )}}{{\left (a^{2} + b^{2}\right )}^{2}{\left (e^{\left (2 \, d x + 2 \, c\right )} + 1\right )}^{2}}}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]